export default [
  {path: '/user', layout: false, routes: [{path: '/user/login', component: './User/Login'}], name: '登录'},
  {path: '/interface_info/:id',icon: 'smile',  hideInMenu: true, component: './InterfaceInfo', name: '查看接口'},
  { path: '/', icon: 'smile', component: './Index' ,name:'首页'},
  {
    path: '/admin',
    icon: 'crown',
    access: 'canAdmin',
    routes: [
      {icon: 'table', path: '/admin/interface_info', component: './Admin/InterfaceInfo', name: '接口管理'},
      { name:'接口分析',icon: 'table', path: '/admin/interface_analysls', component: './Admin/InterfaceAnalysis' },
    ],
    name: '管理页'
  },

  // { path: '/', redirect: '/welcome' },
  {path: '*', layout: false, component: './404'},
];
